package com.itheima.idea;

public class Demo5Array {
    /*

     */
    public static void main(String[] args) {
        //定义一个int类型数组
        int[] arr1 = new int[2];
        arr1[0] = 11;
        arr1[1] = 22;

        //将arr1的地址值赋给arr2
        int[] arr2 = arr1;
        arr2[0] = 33;

        System.out.println(arr1[0]);
        System.out.println(arr1[1]);

        System.out.println("-----------");

        System.out.println(arr2[0]);
        System.out.println(arr2[1]);

    }
}
